.chat-editor {
  display: flex;
  flex-direction: column;
  height: 300px;
}

.quote {
  align-items: center;
  background-color: #f0f0f0;
  color: #999;
  display: flex;
  font-size: 12px;
  padding: 8px 16px;
  .record {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  :global(.anticon) {
    color: rgba(#f5222d, 0.85);
    font-size: 16px;
    margin-left: 8px;
    padding-left: 6px;
  }
}

.input-wrap {
  flex: 1;
  position: relative;
  overflow: hidden;

  .input,
  .placeholder {
    padding: 3px 14px 14px;
  }

  .input {
    -webkit-user-modify: read-write-plaintext-only;
    color: #222;
    height: 100%;
    outline: none;
    overflow: auto;
    user-modify: read-write-plaintext-only;
  }

  .placeholder {
    color: #aaa;
    pointer-events: none;
    position: absolute;
    top: 0;
  }
  &:focus-within > .placeholder,
  .input:not(:empty) + .placeholder {
    display: none;
  }
}

.chat-editor > footer {
  border-top: 1px solid #eee;
  color: #999;
  font-size: 12px;
  padding: 0.8em 1em;
  text-align: right;
}
